package com.haidechizi.util.lock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: wangdejun
 * @create: 2019-11-13 10:19
 **/
@Data
@Component
@ConfigurationProperties("spring.zk.curator")
public class CuratorProperties {

    private String connectString = "127.0.0.1:2181";
    private String namespace = "lock";
    private Integer sessionTimeoutMs = 60000;
    private Integer connectionTimeoutMs = 15000;
    private String lockClass = "org.apache.curator.framework.recipes.locks.InterProcessMutex";

}
